Apparatus and method for establishing a peer-to-peer communication session with a host device

ABSTRACT

The present invention describes an apparatus and method of establishing a peer-to-peer communication session between a host device and a client device. Routing information of the host device is received from a server via a wide area network, routing information of the client device is provided to the server, and authentication information is provided to the host device via the wide area network. Peer-to-peer communication is transmitted to the client device via the wide area network if the client device is authenticated for peer-to-peer communication by the host device.

TECHNICAL FIELD OF THE INVENTION

The present invention relates in general to electronic communication anddata transfer, and more specifically, to an apparatus and method forestablishing a peer-to-peer communication session between a host deviceand a client device separated by a wide area network.

BACKGROUND OF THE INVENTION

Currently there are few options available should one want to accesselectronic files from a remote location. While one may store theirelectronic documents on a public or private server at a remote location,this method has significant drawbacks. Should the server ever crash,files may become corrupted, deleted, or in the best case scenario,temporarily unavailable. Further, remote data storage on a third-partyserver is costly, potentially subjecting one to fees or unwantedadvertisements. Most worrisome, however, is that the storage of files ona remote server may pose security risks.

An alternative method to remote data storage on a third-party server isthe utilization of a peer-to-peer communication session to accessdocuments from a remote location. However, current methods for theinitialization of a peer-to-peer communication session betweenelectronic devices on local area networks separated by a wide areanetwork are limited. If one were on a local area network separated fromthe internet by a network address translator, commonly referred to as aNAT, their device would not be detectible to devices on the wide areanetwork. As such, in order to initiate a peer-to-peer communicationsession between a first and a second communication device on local areanetworks separated by a wide area network, one must either leave a portin their network address translator permanently open for incomingcommunication transmissions, place their files in an unsecured location,or utilize a relay server to route the data to its intended destination,thereby not initializing a peer-to-peer communication session at all.

These alternatives, however, have significant drawbacks. The bestcurrent option for the initialization of a peer-to-peer communicationsession between electronic devices, leaving a port permanently open in anetwork address translator, creates high security risks for devices onthe local area network. Permanently opened ports create high risks of asecurity breach in the local area network, allowing unwanted orunauthorized communication through the network address translator,increasing the risk that data or system performance may be compromisedby third party devices or programs, such as viruses, worms, or spy ware.

Furthermore, the utilization of a relay server to transfer data from afirst communication device to a second communication device also createshigh risks of data exposure to harmful third parties and other breachesof confidentiality. Should the relay server store or copy data, orshould the relay server allow a third party to listen in on the relayeddata, the data may be compromised. Moreover, utilization of a relayserver imposes additional bandwidth costs. As such, there is a need fora method and system for establishing a peer-to-peer communicationsession between a first and a second communication device on local areanetworks separated by the wide area network that does not create therisks of the current methods.

Current methods of file sharing between devices on local area networksseparated by a wide area network, such as the internet, are limited.There is a need in the art for an apparatus and method for establishinga peer-to-peer communication session between electronic devices over awide area network. Specifically, there is a need for a device thatfacilitates a direct peer-to-peer communication session between a firstand a second communication device on different local area networksseparated by the wide area network. It is to these ends that the presentinvention has been developed.

SUMMARY OF THE INVENTION

To minimize the limitations in the prior art, and to minimize otherlimitations that will be apparent upon reading and understanding thepresent specification, the present invention describes a method ofestablishing a peer-to-peer communication session with a host device bya client device, comprising receiving routing information of the hostdevice from a server coupled to a wide area network, sending routinginformation of the client device to the server, providing authenticationinformation to the host device via the wide area network, and sendingpeer-to-peer communication to the host device via the wide area networkif authenticated to communicate with the host device.

The present invention also describes a client device for establishing apeer-to-peer communication session with a host device, adapted toreceive routing information of the host device from a server coupled toa wide area network, send routing information of the client device tothe server, provide authentication information to the host device viathe wide area network, and send peer-to-peer communications to the hostdevice via the wide area network if authenticated to communicate withthe host device.

The present invention further describes a computer-readable mediumincluding codes executable by a processor, for receiving routinginformation of the host device from a server coupled to a wide areanetwork, sending routing information of the client device to the server,providing authentication information to the host device via the widearea network, and sending peer-to-peer communication to the host devicevia the wide area network if authenticated to communicate with the hostdevice.

It is an objective of the present invention to provide an effectivemethod for the initiation of a peer-to-peer communication sessionbetween electronic devices on separate local area networks.

It is another objective of the present invention to provide a system forestablishing a peer-to-peer communication session between a host deviceand a client device.

It is yet another objective of the present invention to provide acomputer-readable medium adapted to provide the receiving of routinginformation of a host device, from a server, provide routing informationto the host device by transmitting the routing information to theserver, and providing authentication information to the host device viaa wide area network in order to establish a peer-to-peer communicationsession with the host device.

Finally, it is yet another objective of the present invention to reducethe risk of a private network security breach, or some other datasecurity compromise, from a third-party as a result of attempts toinitiate a peer-to-peer communication session between a first and asecond communication device.

These and other advantages and features of the present invention aredescribed herein with specificity so as to make the present inventionunderstandable to one of ordinary skill in the art.

BRIEF DESCRIPTION OF THE DRAWINGS

Elements in the figures have not necessarily been drawn to scale inorder to enhance their clarity and improve understanding of thesevarious elements and embodiments of the invention. Furthermore, elementsthat are known to be common and well understood to those in the industryare not depicted in order to provide a clear view of the variousembodiments of the invention.

FIG. 1( a) illustrates a block diagram of an exemplary embodiment of asystem for establishing a peer-to-peer communication session.

FIG. 1( b) illustrates a block diagram of another exemplary embodimentof a system for establishing a peer-to-peer communication session.

FIG. 2( a) illustrates a block diagram of an exemplary embodiment ofcommunication between components of a system for establishing apeer-to-peer communication session.

FIG. 2( b) illustrates a flow diagram of methods utilized by a systemfor establishing a peer-to-peer communication session.

FIG. 2( c) illustrates a block diagram of a network address translatorcommunicating with third party devices.

FIG. 3( a) illustrates a flow chart of a method utilized for the initialauthorization pairing necessary for establishing a peer-to-peercommunication session.

FIG. 3( b) illustrates as block diagram of an exemplary network setuputilized by a host device and a client device for the establishment of apeer-to-peer communication session.

FIG. 4( a) illustrates a block diagram of an exemplary embodiment of ahost communication device.

FIG. 4( b) illustrates a flow chart of a method utilized by a hostcommunication device for establishing a peer-to-peer communicationsession with a client communication device.

FIG. 5( a) illustrates a block diagram of an exemplary embodiment of aclient communication device.

FIG. 5( b) illustrates a flow chart of a method utilized by a clientcommunication device for establishing a peer-to-peer communicationsession with a host communication device.

FIG. 6 illustrates a flow chart of a method utilized by clientcommunication device for establishing a communication session with hostcommunication device.

DETAILED DESCRIPTION OF THE DRAWINGS

In the following discussion that addresses a number of embodiments andapplications of the present invention, reference is made to theaccompanying drawings that form a part hereof, where depictions aremade, by way of illustration, of specific embodiments in which theinvention may be practiced. It is to be understood that otherembodiments may be utilized and changes may be made without departingfrom the scope of the present invention.

In the present disclosure, peer-to-peer communication may comprisecommunication or data transmission between two devices in directconnection over a network, without data transmission relayed through aserver or another third party device.

A local area network (“LAN”) may comprise a network of computers orother electronic devices within a home, office, or other location,wherein the network is separated or kept private from a wide areanetwork (“WAN”), by a router, network hub, or network address translator(“NAT”). A WAN may comprise a broad computer network, such as theinternet, that may connect multiple devices or LANs together.

An internet protocol (“IP”) address may comprise a numeric label used toidentify specific devices or locations on a network. A public IP addressis an identifier that may be used to identify a device or location on aWAN, most typically assigned to public servers or NATs used to separateprivate networks from the WAN. A private IP address is an IP addressassigned to a device for identification within a LAN, separated from theWAN by a NAT.

A NAT may comprise a device used for the modification of a networkaddress header in data packets transmitted between a device on LAN andthe WAN. NATs allow a single public IP address to be used by manydevices on a LAN, redirecting and re-labeling incoming and outgoingcommunications to hide private IP address information from the WAN.Additionally, NAT devices may forward application or process specificports from one network node to another.

In the context of the present application, an open port may comprise aport allowing for the data packet to be accepted or to pass through toits intended destination. In contrast, a closed port may comprise a portwherein data packets will be denied, and will not be received at theintended destination.

Now referring to the drawings, FIG. 1( a) illustrates a block diagram ofan exemplary embodiment of a system for establishing a peer-to-peercommunication session. FIG. 1( b) illustrates a block diagram of analternative embodiment of a system for establishing a peer-to-peercommunication session. Both FIGS. 1( a) and 1(b) depict system 10, whichcomprises host device 11, client device 12, and server 13. System 10 isdesigned to facilitate the establishment of a peer-to-peer communicationsession between host device 11 and client device 12.

Host device 11 is a component of system 10 designed to send and receivepeer-to-peer communications with client device 12 over WAN 16. In anexemplary embodiment, of the present invention, host device 11 is hiddenfrom devices on WAN 16 behind NAT 14(a). To devices on WAN 16, anycommunication from host device 11 is seen as being sent from the publicIP address of NAT 14(a). In embodiments utilizing NAT 14(a), allcommunications transmitted from and sent to host device 11 may passthrough NAT 14(a).

As illustrated in FIGS. 1( a) and 1(b), host device 11 is connected toLAN 15(a). LAN 15(a), and all devices that may be located within it, isseparated from WAN 16 by NAT 14(a). Devices on LAN 15(a) are typicallyidentified by a private IP address utilized by NAT 14(a) todifferentiate devices located behind NAT 14(a). In an exemplaryembodiment, host device 11 may be assigned a unique private IP addressby NAT 14(a). In order for host device 11 to communicate with a devicenot within LAN 15(a), the communication may traverse LAN 15(a), NAT14(a), and WAN 16 in order to reach the intended recipient. To receive acommunication from outside LAN 15(a), the communication must passthrough NAT 14(a), and host device 11 must be anticipating the incomingdata communication. Should host device 11 not be waiting for a datatransmission, the communication will be blocked by NAT 14(a).

Client device 12 is a component of system 10 designed to initiate apeer-to-peer communication session with host device 11 for data transferover WAN 16. In the exemplary embodiment depicted in FIG. 1( a), clientdevice 12 may be a component on LAN 15(b), hidden from devices on WAN 16behind NAT 14(b). In such an embodiment, for client device 12 tocommunicate with a device not within LAN 15(b), the communication maytraverse LAN 15(b), NAT 14(b), and WAN 16 in order to reach its intendedrecipient. In an alternative embodiment of the present invention, asdepicted in FIG. 1( b), client device 12 may directly connect to WAN 16.

To initiate a peer-to-peer communication session between host device 11and client device 12, both host device 11 and client device 12 mustlearn their own routing information and the routing information of theother respective device in order to initiate peer-to-peer communication.As such, both host device 11 and client device 12 are designed tocommunicate with server 13. Server 13 is a component of system 10designed to facilitate a peer-to-peer communication session between hostdevice 11 and client device 12. Server 13 may have a static IP address,such that host device 11 and client device 12 may know its location inorder to initiate communication with server 13.

In exemplary usage of the present invention, host device 11 and clientdevice 12 may communicate with server 13 over WAN 16. To facilitate apeer-to-peer communication session, server 13 exchanges the routinginformation of both host device 11 and client device 12 to host device11 and client device 12, respectively. Routing information of hostdevice 11 and client device 12 may comprise the media access control(“MAC”) address of the host device, Transmission Control Protocol(“TCP”) private IP address, TCP public IP address, and User DatagramProtocol (“UDP”) public address. The UDP public address comprises thepublic IP address and port number. With such routing information, hostdevice 11 and client device 12 may initiate direct peer-to-peercommunication.

FIG. 2( a) illustrates a block diagram of an exemplary embodiment ofcommunication between components of a system for establishing apeer-to-peer communication session. FIG. 2( a) shows system 10,comprising host device 11, client device 12, and server 13, which maycomprise UDP server 16 and TCP server 17. FIG. 2( a) further emphasizesSession Traversal Utilities for NAT (“STUN”) message 18(a), STUN message18(b), TCP registration 19(a), TCP registration 19(b), routinginformation message 20(a), routing information message 20(b), andrequest 21. The components of system 10 are designed to communicate tofacilitate the establishment of a peer-to-peer communication sessionbetween host device 11 and client device 12.

To conduct peer-to-peer communication, both host device 11 and clientdevice 12 are provided with their own respective UDP public address. Inan exemplary embodiment, to discover their UDP public address, both hostdevice 11 and client device 12 send STUN message queries to UDP server16, which is located on the opposing side of the NAT of each respectivedevice.

For the purposes of the present invention, a STUN message is a querysent by a device on a LAN to UDP server 16 on the opposing side of theNAT separating the device from the WAN, requesting its UDP publicaddress. UDP server 16 is a component of server 13 that, in response toa STUN message query, sends a data packet to the querying devicecontaining the UDP public address of the device.

As such, to discover its UDP public address, host device 11 sends STUNmessage 18(a) to UDP server 16. In response to STUN message 18(a), UDPserver 16 sends host device 11 a data packet containing the UDP publicaddress of host device 11. In an exemplary embodiment, host device 11may continuously send STUN message 18(a) to UDP server 16 in frequentintervals, so that host device 11 may learn its new public IP address,should the address change. Likewise, client device 12 sends STUN message18(b) to UDP server 16. In response to STUN message 18(b), server 13sends client device 12 a data packet containing the UDP public addressof client device 12. Client device 12 may continuously send STUN message18(b) to UDP server 16 in order to discover its UDP public address,should the address change.

Host device 11 completes TCP registration 19(a) by transmitting its MACaddress and TCP private IP address to TCP server 17. Client device 12completes TCP registration 19(b) by transmitting its TCP private IPaddress and the MAC address of host device 11 to TCP server 17. TCPserver 17 is a component of server 13 which receives and records therouting information from host device 11 and client device 12. As such,TCP registration 19(a) and TCP registration 19(b) both comprise of theMAC address of host device 11, however, TCP registration 19(a) includesthe TCP private IP address of host device 11, and TCP registration 19(b)includes the TCP private IP address of client device 12.

When server 13 recognizes a matching pair of devices based uponregistration of the MAC address of host device 11, server 13 forwardsthe routing information of client device 12 to host device 11 by way ofTCP server 17. Server 13 also forwards the routing information of hostdevice 11 to client device 12 by way of TCP server 17. Server 13provides routing information to host device 11 through routinginformation message 20(a). Server 13 provides routing information toclient device 12 through routing information message 20(b).

When client device 12 is provided the routing information of host device11, it sends request 21 to host device 11, requesting to initiate apeer-to-peer communication session. Should host device 11 authorizeclient device 12 for peer-to-peer communication, peer-to-peercommunication may commence.

In another exemplary embodiment of the present invention, host device11, after it has received the routing information of client device 12,may attempt to initiate a peer-to-peer communication session with clientdevice 12. Host device 11 may send request 21 to client device 12,requesting an authentication identifier from client device 12, which isnecessary in order to initiate peer-to-peer communication. Anauthentication identifier may comprise a unique identifier, such as aMAC address, serial number, username or password. Should host device 11authorize client device 12 for peer-to-peer communication, peer-to-peercommunication between host device 11 and client device 12 may commence.

FIG. 2( b) illustrates flow diagrams of processes utilized by system 10for establishing a peer-to-peer communication session between hostdevice 11 and client device 12, in accordance with one embodiment of thepresent invention. FIG. 2( b) shows rendezvous process 100,authentication process 120, authentication process 140, and peer-to-peercommunication session 160. Rendezvous process 100, authenticationprocess 120, and authentication process 140 are explained in the ordersdescribed below; however, the following steps may be taken in any otherconceivable sequence without deviating from the scope of the presentinvention.

Rendezvous process 100 is utilized by system 10 to transfer the routinginformation of client device 12 to host device 11 and the routinginformation of host device 11 to client device 12. In an exemplaryembodiment of the present invention, rendezvous process 100 may repeatcontinuously, as long as host device 11 and client device 12 are able tocommunicate with server 13, even after peer-to-peer communication hasbeen established. In the embodiment illustrated in FIG. 2( b),rendezvous process 100 comprises steps 101-108.

In step 101, host device 11 sends STUN message 18(a) and TCPregistration 19(a) to server 13, as previously described for FIG. 2( a).In step 102, server 13 checks the memory of TCP server 17 to see ifclient device 12 has already registered with the MAC address of hostdevice 11. If there is no other device on record with such a MACaddress, server 13 records the MAC address of host device 11 in thememory of TCP server 17 and proceeds to step 103. If client device 12has already registered the MAC address of host device 11, then server 13recognizes the paired devices and proceeds to steps 107 and 108.

In step 103, server 13, in response to STUN message 18(a) sent by hostdevice 11, transfers the public IP address and port number of hostdevice 11 to host device 11. As long as host device 11 is online andable to communicate with server 13, host device 11 and server device 13will repeat steps 101-103.

In step 104, client device 12 may send STUN message 18(b) and TCPregistration 19(b) to server 13, as previously described above for FIG.2( a). In step 105, server 13 checks the memory of TCP server 17 to seeif host device 11 has already registered. If host device 11 has alreadyregistered its MAC address with TCP server 17, then server 13 willrecognize the paired devices and proceeds to steps 107 and 108. If,however, host device 11 has not registered with server 13 prior toclient device 12, server 13 records the MAC address of host device 11 inthe memory of TCP server 17, as transmitted by client device 12. Untilboth host device 11 and client device 12 are simultaneously incommunication with server 13, sending STUN messages to server 13, system10 cannot yet proceed to steps 107 and 108.

In step 106, server 13, in response to STUN message 18(b) sent by clientdevice 12, transfers the public IP address and port number of clientdevice 12 to client device 12. As long as client device 12 is online andable to communicate with server 13, client device 12 and server device13 will repeat steps 104-106. Further, in other embodiments of thepresent invention, steps 104-105 may occur before or simultaneously withsteps 101-103.

In step 107, server 13 transmits routing information 20(a) to hostdevice 11. In step 108, server 13 transmits routing information 20(b) toclient device 12. Note, however, in other embodiments of the presentinvention, server 12 may perform step 108 before or simultaneously withstep 107. Once steps 107 and 108 have been completed, with routinginformation 20(a) and 20(b) transferred to host device 11 and clientdevice 12, system 10 proceeds to authentication process 120, or in otherembodiments of the present invention, authentication process 140.

Authentication process 120 is utilized by system 10 to authorize andinitiate a peer-to-peer communication session between host device 11 andclient device 12. In the embodiment illustrated in FIG. 2( b),authentication process 120 comprises steps 121-123.

In step 121, client device 12 directly communicates with host device 11,sending request 21 to initiate a peer-to-peer communication session andits authentication identifier. Should host device 11 receive request 21,sent by client device 12, system 10 proceeds to step 122. However,should host device 11 not receive request 21 from client device 12,system 10 cannot proceed to step 122, but instead may initiateauthentication process 140. Client device 12 may repeat step 121 untilit receives a response from host device 11.

In step 122, host device 11 compares the authentication identifier ofclient device 12 with identifiers of authorized devices stored in thememory of host device 11. Should the authentication identifier of clientdevice 12 match that of an authorized device stored in the memory ofhost device 11, then client device 12 is authorized for peer-to-peercommunication. If, however, the authentication identifier of clientdevice 12 is not found in the memory of host device 11, then clientdevice 12 is not authorized for peer-to-peer communication.

In step 123, host device 11 replies to client device 12, eitherapproving or denying a request to initiate a peer-to-peer communicationsession. If authentication of client device 12 is approved by hostdevice 11, then system 10 proceeds to peer-to-peer communication session160. Should authentication be denied by host device 11, thenpeer-to-peer communication with client device 12 is terminated.

Authentication process 140 is an alternative authentication processutilized by system 10 to authorize and initiate a peer-to-peercommunication session between host device 11 and client device 12. Inthe embodiment illustrated in FIG. 2( b), authentication process 140comprises steps 141-144.

In step 141, host device 11 sends request 21 to initiate a peer-to-peercommunication session, requesting an authentication identifier fromclient device 12. Should the request sent by host device 11 be receivedby client device 12, system 10 will proceed to step 142. Until hostdevice 11 receives a response from client device 12, host device 11 mayrepeat step 141.

In step 142, client device 12 responds to host device 11 by transferringits authentication identifier. Should host device 11 receive theauthentication identifier sent by client device 12, system 10 willproceed to step 143. Until client device 12 receives a response fromhost device 11, client device 12 may repeat step 141. Additionally,should client device 12 not receive a response from host device 11,client device 12 may initiate authentication process 120.

In step 143, host device 11 compares the authentication identifier ofclient device 12 with identifiers of authorized devices stored in thememory of host device 11. Should the authentication identifier of clientdevice 12 match that of an authorized device stored in the memory ofhost device 11, then client device 12 is authorized for peer-to-peercommunication. If, however, the authentication identifier of clientdevice 12 is not found in the memory of host device 11, then clientdevice 12 is not authorized for peer-to-peer communication.

In step 144, host device 11 replies to client device 12, eitherapproving or denying a request to initiate a peer-to-peer communicationsession. If authentication of client device 12 is approved by hostdevice 11, then system 10 proceeds to peer-to-peer communication session160.

Peer-to-peer communication 160 is a form of communication between hostdevice 11 and client device 12 wherein data is transferred directlybetween the devices, without the need for a relay server. At anytimeduring peer-to-peer communication 160, should communication beinterrupted or routing information for either host device 11 or clientdevice 12 is altered, authentication process 120 or authenticationprocess 140 may be reinitialized to reestablish peer-to-peercommunication 160.

FIG. 2( c) illustrates a block diagram of NAT 14(a) communicating withthird party devices. FIG. 2( c) shows NAT 14(a), comprising open port22, closed port 23 and translated port 24. NAT 14(a) translates STUNmessage 18(a) from host device 11 to UDP server 16 and allows request 21through open port 22 to reach host device 11, but denies communication25 from reaching host device 11.

Open port 22 is a component of NAT 14(a) which allows expectedcommunications from WAN 16 to reach devices on LAN 15(a), such as hostdevice 11. In exemplary performance of NAT 14(a), ports are left closed,such as closed port 23. Only when a communication is expected is a portleft open. In an exemplary performance the present invention, when STUNmessage 18(a) is sent to UDP server 16, both host device 11 and NAT14(a) expect a response communication from UDP server 16. As a result,NAT 14(a) allows access to open port 22 in order to receivecommunication from UDP server 16.

Translated port 24 is the private port address that NAT 14(a) routescommunications that were not blocked by closed port 23. Should acommunication pass through open port 22, NAT 14(a) translates thedestination information within the communication such that thecommunication may lead to translated port 24.

Communications from devices on WAN 16 that are not expected by will notbe allowed to reach LAN 15(a). As illustrated, communication 25 may beblocked by closed port 23 because it is not directed to open port 22.Should communication 25 be directed at open port 22, however, it may bepermitted to pass through to LAN 15(a) only if it contained routinginformation 20(b), which is necessary to pass through open port 22.

In exemplary usage of the present invention, request 21 may pass throughopen port 22 because request 21 contains routing information 20(b) inits destination information. NAT 14(a) allows request 21 to pass throughto host device 11, even though request 21 was not sent from UDP server16 in response to STUN message 18(a) because client device 12 tailoredrequest 21 to include routing information 20(b). Because client device12 was provided with the TCP private address of host device 11 inrouting information 20(b), request 21 is approved by NAT 14(a) to betransmitted to host device 11.

FIG. 3( a) explains an initial pairing procedure in order for hostdevice 11 to recognize and authorize client device 12 for peer-to-peercommunication. In order for host device 11 to authorize client device12, host device 11 must possess the authentication identifier of clientdevice 12. In an exemplary embodiment of the present invention, clientdevice 12 may comprise a Universal Serial Bus (“USB”) compatible device,or USB key 26, illustrated in FIG. 3( b), containing an authenticationidentifier, such as a serial number. In such embodiments, as explainedbelow, USB key 26 of client device 12 may be connected to host device 11for initial pairing. In other embodiments of the present invention,however, client device 12 may comprise some other electronic device,such as a PDA or smart device, thereby requiring a different method ofinitial pairing, such as inputting the authentication identifier viakeyboard interface.

FIG. 3( a) illustrates a flow chart of method 300 utilized by hostdevice 11 and a USB key for the initial authorization pairing necessaryfor establishing a peer-to-peer communication session between hostdevice 11 and client device 12. Method 300 is explained in the ordershown below; however, the following steps may be taken in any otherconceivable sequence without deviating from the scope of the presentinvention.

In step 301, USB key 26 of client device 12 is connected to host device11. In exemplary usage of the present invention, USB key 26 may beplugged into a USB port of host device 11. In other embodiments of thepresent invention, client device 12 may connect to host device 11 viadirect peer-to-peer communication, such as BLUETOOTH®, or over LAN15(a). In step 302, the authentication identifier of USB key 26 isrecorded in the memory of host device 11.

In an exemplary embodiment of the present invention, recordedauthentication identifiers within the memory of host device 11 areclassified for unauthorized access to host device 11. In step 303, hostdevice 11 reclassifies the authentication identifier of USB key 26stored in the memory of host device 11 for authorized communication withhost device 11. In another embodiment of the present invention, recordedauthentication identifiers stored within the memory of host device 11may be reclassified from authorized to unauthorized, or vice versa.

In step 304, USB key 26 records the MAC address of host device 11 intoits memory. As previously described, in an exemplary embodiment of thepresent invention, client device 12 submits the MAC address of hostdevice 11 to server 13 in order to receive the routing information ofhost device 11 necessary for initialization of a peer-to-peercommunication session.

Finally, in step 305, USB key 26 is disconnected from host device 11.Should a user of the present invention intend to establish apeer-to-peer communication session with host device 11, the user mustfirst connect USB key 26 to their electronic device in order toauthorize it for peer-to-peer communication access. In the event thatUSB key 26 is not plugged into the user's electronic device, or inanother embodiment of the present invention should authorized softwarenot be installed and running, then the electronic device will not beauthorized for peer-to-peer communication with host device 11.

FIG. 3( b) illustrates a block diagram of an exemplary network setuputilized by host device 11 and client device 12 for the establishment ofa peer-to-peer communication session through NAT 14(a) and WAN 16. FIG.3( b) shows client device 12, utilizing USB key 26, and host device 11,communicating through NAT 14(a) and WAN 16. Additionally, host device 11may communicate with home computer 27 over LAN 15(a).

In an exemplary embodiment of the present invention, host device 11 maycomprise a network connected data storage device, located on LAN 15(a),such as a network hard drive or data storage server. As previouslydescribed for FIG. 3( a), host device 11 is initially paired with USBkey 26 for peer-to-peer communication authorization. When host device 11is connected to LAN 15(a), it may be accessible for peer-to-peercommunication with client device 12.

In the embodiment of the present invention illustrated in FIG. 3( b),client device 12 may comprise any network accessible electronic device,such as a personal computer, notebook computer, smart phone or personaldigital assistant, and USB key 26, provided that the electronic devicemay access USB key 26. Client device 12 may communicate with host device11 over WAN 16 and through NAT 14(a). As previously described, clientdevice 12 need be authorized for peer-to-peer communication with hostdevice 11 in order initiate a peer-to-peer communication session throughNAT 14(a), and need to communicate with server 13 in order to learn therouting information of host device 11 in order to initiate apeer-to-peer communication session.

Communication between host device 11 and devices on LAN 15(a) behind NAT14(a), and separate from WAN 16, however, may not require the provisionof routing information or an authorization identifier. In an exemplaryembodiment, home computer 27 may initiate a peer-to-peer communicationsession with host device 11 on LAN 15(a) without the need to providerouting information or an authorization identifier. Because host device11 is not hidden from personal computer 27 by NAT 14(a), host device 11may be accessible and visible on LAN 15(a) and may be communicated withby home computer 27 without the need for a complex peer-to-peercommunication session initiation procedure. In the present example, homecomputer 27 may comprise a network accessible electronic device. Inexemplary embodiments, home computer 27 may comprise a personalcomputer, notebook computer, smart phone or personal digital assistant,or other electronic device capable of network.

FIG. 4( a) illustrates a block diagram of an exemplary embodiment of theinternal components of host device 12. FIG. 4( a) shows host device 11,comprising processor 30, memory 31, pairing interface 32, and networkinterface 33, connected to an external network, such as WAN 16. Hostdevice 11, however, may comprise other internal or external componentsand not depart from the scope of the present invention. Host device 11is designed to initiate a peer-to-peer communication session with clientdevice 12 over WAN 16.

Processor 30 is a component of host device 11 that governs thefunctionality of host device 11. All data inputs and commandinstructions from external devices through network interface 33 mayultimately be relayed through processor 30. In an exemplary embodimentof the present invention, processor 30 instructs network interface 33 tocommunicate with external devices.

Memory 31 is a component of host device 11 wherein data is stored andaccessed for peer-to-peer communication with client device 12. Processor30 may access data stored in memory 31 for transmission throughpeer-to-peer communication, or for authorization of client device 12.Additionally, processor 30 may access memory 31 to record, modify, ordelete data stored within in memory 31. Data stored in memory 31 may betransferred through network interface 33 via processor 30.

Pairing interface 32 is a component of host device 11 wherein externaldevices may be connected with host device 11 for initial pairing andauthorization, as previously discussed for FIG. 3( a). In an exemplaryembodiment of the present invention, pairing interface 32 may comprise aUSB receiver port, wherein a USB key such as USB key 26 may be pluggedinto pairing interface 32 such that processor 30 may store theauthentication identifier of the USB key within memory 31. Additionally,processor 30 may instruct pairing interface 32 to record the MAC addressof network interface 33 within the memory of the USB key for laterrendezvous between client device 12 and server 13. In another embodimentof the present invention, pairing interface 32 may comprise a keyboardinterface, wherein a user of host device 11 may key in theauthentication identifier of client device 12 for initial pairingbetween host device 11 and client device 12.

Network Interface 33 is a component of host device 11 that communicateswith external devices, such as client device 12 and server 13, throughan external network connection. Network interface 33 may comprise awired connection to NAT 14(a), or may utilize a wireless LAN, BLUETOOTH®protocol, or some other compatible connection interface with NAT 14(a).In an exemplary embodiment of the present invention, network interface33 may communicate with server 13 for rendezvous process 100, and clientdevice 12 for direct peer-to-peer communication. In such an embodiment,processor 30 may direct network interface 33 to accept or rejectincoming communications from external electronic devices, direct networkinterface 33 to send an appropriate communication to server 13 or clientdevice 12.

FIG. 4( b) illustrates a flow chart of method 400 utilized by hostdevice 11 for establishing a peer-to-peer communication session withclient device 12. Method 400 is explained in the order shown below;however, the following steps may be taken in any other conceivablesequence without deviating from the scope of the present invention.

In step 401, host device 11 completes the initial pairing method withclient device 12, as described in FIGS. 3( a) and 4(a). Once initialpairing has been completed, and the authentication identifier for clientdevice 12 has been recorded, host device 11 proceeds to step 402.

In step 402, host device 11 sends STUN message 18(a) to UDP server 16and TCP registration 19(a) to TCP server 17 via network interface 33. Inan exemplary embodiment of the present invention, step 402 may becontinuously repeated. In step 402, host device 11 continually updatesserver 13 with the routing information of host device 11, should itchange.

In step 403, host device 11 receives the UDP public IP address of hostdevice 11 from server 13 via network interface 33, in response to theSTUN message 18(a) sent in step 402. Processor 30 stores the UDP publicIP address of host device 11 within memory 31. In an exemplaryembodiment of the present invention, step 403 updates host device 11 ofits own UDP public IP address, should the address change. Step 403 mayrepeat continuously, as server 13 may repeatedly send responses to STUNmessages sent in step 402. In step 404, host device 11 receives routinginformation 20(a), the routing information of client device 12 fromserver 13 via network interface 33. Processor 30 stores routinginformation 20(a) client device 12 within memory 31.

In step 405, host device 11 waits for the initial peer-to-peercommunication from client device 12 via network interface 33. Shouldhost device 11 receive request 21 from client device 12, host device 11proceeds to step 406. Should host device 11 not receive request 21 tocommunicate and an authentication identifier from client device 12within a set period of time, host device 11 proceeds to step 407. In analternative embodiment of the present invention, host device 11 mayproceed directly to step 407 without waiting for communication fromclient device 12.

In step 406, host device 11 performs authorization process 120, aspreviously described for FIG. 2( b). Host device 11 receives request 21from client device 12 via network interface 33 along with anauthentication identifier from client device 12. Should theauthentication identifier transferred from client device 12 be stored inmemory 31, processor 30 will approve client device 12 for peer-to-peercommunication, instruct network interface 33 to send an approval messageto client device 12, and host device 11 will proceed to step 409.However, should the authentication identifier not be stored in memory31, or the identifier transferred was not authorized, processor 30 maydeny client device 12 for peer-to-peer communication, and host device 11will proceed to step 408.

In step 407, host device 11 performs authorization process 140 aspreviously described for FIG. 2( b). Host device 11 sends request 21 toclient device 12 for its authentication identifier, to initiate apeer-to-peer communication session. Should client device 12 transfer itsauthentication identifier to host device 11, host device 11 may checkmemory 31 if the authentication identifier is approved. Should theauthentication identifier transferred by client device 12 be stored inmemory 31, processor 30 will approve client device 12 for peer-to-peercommunication, instruct network interface 33 to send an approval messageto client device 12, and host device 11 will proceed to step 409.However, should the authentication identifier not be stored in memory31, or the identifier transferred was not authorized, processor 30 maydeny client device 12 for peer-to-peer communication, and host device 11will proceed to step 408.

In step 408, host device 11 denies client device 12 access because it isnot authorized for peer-to-peer communication. Host device 11 may send adenial communication to client device 12 and terminate peer-to-peercommunication. Finally, in step 409, host device 11 may send an approvalmessage to client device 12, and begin peer-to-peer communicationsession for data transfer. In an exemplary embodiment of the presentinvention, should a peer-to-peer communication session conclude or endprematurely because of a disconnection or other network problems, hostdevice 11 may reestablish a peer-to-peer communication session withclient device 12 by performing steps 404-407 again to reauthorize clientdevice 12 for peer-to-peer communication.

FIG. 5( a) illustrates a block diagram of an exemplary embodiment of theinternal components of client device 12. FIG. 5( a) shows client device12, comprising processor 40, memory 41, USB interface 42, USB key 26,and network interface 43, connected to an external network, such as WAN16. Client device 12, however, may comprise other internal or externalcomponents and not depart from the scope of the present invention.Client device 12 is designed to initiate a peer-to-peer communicationsession with host device 11 over WAN 16.

Processor 40 is a component of client device 12 that governs thefunctionality of client device 12. All data inputs and commandinstructions from external devices through network interface 43 mayultimately be relayed through processor 40. In an exemplary embodimentof the present invention, processor 40 instructs network interface 43 tocommunicate with external devices.

Memory 41 is a component of client device 12 in which data is stored forpeer-to-peer communication with host device 11. Processor 40 may accessdata stored in memory 41 for transmission through peer-to-peercommunication, or for authorization of client device 12 with host device11. Additionally, processor 40 may access memory 41 to record, modify,or delete data stored in memory 41. Data stored in memory 41 may betransferred through network interface 43 via processor 40.

USB Interface 42 is a component of client device 12 wherein externaldevices may be connected to client device 12 for access to anauthentication identifier for the initialization of peer-to-peercommunication with host device 11. In an exemplary embodiment of thepresent invention, USB interface 42 may comprise a USB receiver port,wherein USB key 26 may be plugged into USB interface 42 such thatprocessor 40 may access the authentication identifier for authenticationprocess 120 or authentication process 140, as previously described forFIG. 2( b). Additionally, processor 40 may instruct USB interface 42 torecord the MAC address of host device 11 stored within the memory of USBkey 26 for rendezvous between client device 12 and server 13.

USB key 26 is a component of client device 12 that may be initiallypaired for authorization with host device 11, as previously describedfor FIG. 3( a). USB key 26 may include the MAC address of host device11, such that when connected to USB interface 42, processor 40 mayrequest the routing information of host device 11 from server 13 toinitiate a peer-to-peer communication session. Additionally, USB key 26may store an authentication identifier, which may be initiallytransferred to host device 11 such that client device 12 may beauthorized for peer-to-peer communication with host device 11. In anexemplary embodiment of the present invention, USB key 26 may connectwith USB interface 42 such that processor 40 may access theauthentication identifier and transfer it to host device 11 throughnetwork interface 43 for authorization to initiate peer-to-peercommunication.

In an alternative embodiment of the present invention, client device 12may not include USB key 26. In such an embodiment, when USB key 26 isconnected to USB interface 42, processor 40 may copy the authenticationidentifier stored in USB key 26 to memory 41. As such, client device 12may utilize the authentication identifier stored in memory 41 to beauthorized for peer-to-peer communication with host device 11, shouldUSB key 26 not be connected to client device 12. In another embodimentof the present invention, however, the authentication identifier storedin USB key 26 may be read-only, prohibiting processor 40 from storingthe authentication identifier in memory 41.

Network Interface 43 is a component of client device 12 thatcommunicates with external devices, such as host device 11 and server13, through an external network connection. Network interface 43 maycomprise a wired connection to NAT 14(b), or may utilize a wireless LAN,BLUETOOTH® protocol, or some other compatible connection interface withNAT 14(b). In an exemplary embodiment of the present invention, networkinterface 43 may communicate with server 13 for rendezvous process 100,and host device 11 for direct peer-to-peer communication. In such anembodiment, processor 40 may direct network interface 43 to accept orreject incoming communications from external electronic devices, directnetwork interface 43 to send an appropriate communication to server 13or host device 11.

FIG. 5( b) illustrates a flow chart of method 500 utilized by clientdevice 12 for establishing a peer-to-peer communication session withhost device 11. Method 500 is explained in the order shown below;however, the following steps may be taken in any other conceivablesequence without deviating from the scope of the present invention.

In step 501, USB key 26 is detected by processor 40 through USBinterface 42. In an exemplary embodiment of the present invention, USBkey 26 may be connected to client device 12 through USB interface 42. Inalternative embodiments of the present invention wherein client device12 does not comprise USB key 26 or USB interface 42, step 501 may beskipped. In step 502, processor 40 accesses USB key 26 through USBinterface 42 and receives the authentication identifier and MAC addressfrom USB key 26 necessary for peer-to-peer communication with hostdevice 11. In one embodiment of the present invention, processor 40 maycopy the authentication identifier and MAC address stored on USB key 26to memory 41. In other embodiments of the present invention, USB key 26may include software for peer-to-peer communication with host device 11,which may be run by processor 40.

In step 503, client device 12 sends STUN message 18(b) to UDP server 16and TCP registration 19(b) to TCP server 17 via network interface 43. Inan exemplary embodiment of the present invention, step 503 may becontinuously repeated. In step 503, client device 12 continually updatesserver 13 with the routing information of client device 12, should itchange.

In step 504, client device 12 receives the UDP public IP address ofclient device 12 from server 13 via network interface 43, in response tothe STUN message 19(b) sent in step 503. Processor 40 stores the UDPpublic IP address of client device 12 within memory 41. In an exemplaryembodiment of the present invention, step 504 updates client device 12of its own UDP public IP address, should the address change. Step 504may repeat continuously, as server 13 may repeatedly send responses toSTUN messages sent in step 503. In step 505, client device 12 receivesrouting information 20(b) of host device 11 from server 13 via networkinterface 43. Processor 40 stores the routing information of host device11 within memory 41.

In step 506, client device 12 performs authentication process 120, aspreviously described for FIG. 2( b). Client device 12 sends request 21and its authentication identifier to host device 11 via networkinterface 43. Processor 40 then instructs network interface 43 to waitfor a response from host device 11. Should client device 12 receive anauthentication approval message from host device 11 via networkinterface 43, client device 12 may proceed to step 508. Should clientdevice 12 receive an authentication denied message from host device 11via network interface 43, client device 12 may proceed to step 507.Should client device 12 receive no response from host device 11 orshould client device 12 receive a request for its authenticationidentifier from host device 11, client device 12 may repeat step 506.

In step 507, client device 12 received an authentication denied messagefrom host device 11 via network interface 43, terminating peer-to-peercommunication between host device 11 and client device 12. In oneembodiment of the present invention, client device 12 may return to step506 to request peer-to-peer communication.

Finally, in step 508, client device 12 may begin peer-to-peercommunication and data transfer with host device 11, as client device 12has been authorized for peer-to-peer communication. In an exemplaryembodiment of the present invention, should a peer-to-peer communicationsession conclude or end prematurely because of a disconnection or othernetwork problems, client device 12 may reestablish a peer-to-peercommunication session with host device 11 by performing steps 505-508again to reauthorize client device 12 for peer-to-peer communication.

FIG. 6 illustrates a flow chart of method 600 utilized by client device12 for establishing a communication session with host device 11. Method600 is explained in the order shown below; however, the following stepsmay be taken in any other conceivable sequence without deviating fromthe scope of the present invention.

In step 601, client device 12 attempts to establish a peer-to-peercommunication session with host device 11 via UDP connection protocol.In an exemplary embodiment, client device 12 attempts to initializecommunication with host device 11 via the UDP public IP address and portof host device 11. Client device 12 may attempt this UDP connectionbecause client device 12 was previously relayed the UDP public IPaddress and port of host device 11 by server 13 in routing informationmessage 20(b). In such an embodiment, client device 12 may attempt toinitialize UDP connection with host device 11 for 2 seconds.

In alternative embodiments of the present invention, client device 12may attempt to receive communication from host device 11 via UDPconnection protocol. In such embodiments, client device 12 may listenfor communication via its UDP public IP address and port number forcommunication from host device 11.

Likewise, host device 11 may attempt to receive or send communication toclient device 12 via UDP protocol. In an exemplary embodiment of thepresent invention, host device 11 may attempt to accept communicationfrom client device 12 via its UDP public IP address and port for twoseconds. In other embodiments, host device 11 may attempt to connectwith client device 12 via UDP protocol for two seconds.

In step 602, client device 12 determines if peer-to-peer communicationvia UDP protocol has been established with host device 11. If clientdevice 12 were to receive a connection acknowledgement from host device11 that peer-to-peer communication has been established, thenpeer-to-peer communication via UDP protocol succeeded and client device12 may proceed to step 605. If, however, client device 12 were not toreceive a connection acknowledgement from host device 11, thenpeer-to-peer communication via protocol cannot be verified, and clientdevice 12 proceeds to step 603.

In step 603, client device 12 attempts to establish a peer-to-peercommunication session with host device 11 via TCP connection protocol.In an exemplary embodiment, client device 12 attempts to initialize athree-part handshake procedure with host device 11 via the TCP privateIP address of host device 11. Client device 12 may attempt this TCPconnection because client device 12 was previously relayed the TCPprivate IP address of host device 11 by server 13 in routing informationmessage 20(b). In such an embodiment, client device 12 may attempt toinitialize TCP connection with host device 11 for 2 seconds.

In alternative embodiments of the present invention, client device 12may attempt to receive communication from host device 11 via TCPconnection protocol. In such an embodiment, client device 12 may listenfor communication via its TCP private IP address for communication fromhost device 11.

Likewise, host device 11 may attempt to receive or send communication toclient device 12 via TCP protocol. In an exemplary embodiment of thepresent invention, host device 11 may attempt to accept communicationfrom client device 12 via its TCP private IP address for two seconds. Inother embodiments, host device 11 may attempt to connect with clientdevice 12 via TCP protocol for two seconds.

In step 604, client device 12 determines if peer-to-peer communicationvia TCP protocol has been established with host device 11. If clientdevice 12 were to receive a connection acknowledgement from host device11 that peer-to-peer communication has been established, thenpeer-to-peer communication via TCP protocol succeeded and client device12 may proceed to step 605. If, however, client device 12 were not toreceive a connection acknowledgement from host device 11, thenpeer-to-peer communication via protocol cannot be verified, and clientdevice 12 may proceed to step 606.

In some embodiments of the present invention, should client device 12 beunable to establish peer-to-peer communication with host device 11 viaTCP protocol utilizing the TCP private IP address of host device 11,client device 12 may then attempt to initialize peer-to-peercommunication with host device 11 via TCP protocol utilizing the TCPpublic IP address of host device 11. In such embodiments, client device12 and host device 11 may repeat steps 603 and 604 utilizing the TCPprivate IP addresses of host device 11 and client device 12,respectively.

In step 605, a peer-to-peer communication session has been establishedbetween host device 11 and client device 12. In exemplary embodiments ofthe present invention, the connection protocol used to initialize thepeer-to-peer communication session may be utilized during thepeer-to-peer communication session between host device 11 and clientdevice 12. For example, should client device 12 successfully establishconnection with host device 11 utilizing the UDP connection protocol,client device 12 and host device 11 may then utilize the UDP connectionprotocol for communication and data transfer during their peer-to-peercommunication session. Should the peer-to-peer communication session beterminated, client device 12 may attempt to reinitialize thecommunication session by returning to step 601.

In step 606, client device 12 utilizes server 13 to relay data andcommunication to and from host device 11 because peer-to-peercommunication could not be established between host device 11 and clientdevice 12 utilizing either the TCP or UDP connection protocols. In anexemplary embodiment, data may be transferred between host device 11 andclient device 12 via relay over server 13. In alternative embodiments,should a peer-to-peer connection later be established, the relayconnection with server 13 may be terminated.

In alternative embodiments of the present invention, client device 12may attempt to establish peer-to-peer communication with host device 11via TCP protocol before later attempting to establish peer-to-peercommunication with host device 11 via UDP protocol. In such anembodiment, client device 12 may attempt communication via UDP protocolshould communication via TCP protocol be unsuccessful.

In yet other embodiments of the present invention, client device 12 andhost device 11 may initialize relay communication via server 13 prior toany attempt to establish a peer-to-peer communication session. In suchembodiments, data transfer may be accomplished via relay server until apeer-to-peer communication session is established. Should a peer-to-peercommunication session be established between client device 12 and hostdevice 11, data transfer via relay through server 13 may bediscontinued.

An apparatus and method for establishing a peer-to-peer communicationsession between electronic devices over a wide area network has beendescribed. The foregoing description of the various exemplaryembodiments of the invention has been presented for the purposes ofillustration and disclosure. It is not intended to be exhaustive or tolimit the invention to the precise form disclosed. Many modificationsand variations are possible in light of the above teaching. It isintended that the scope of the invention not be limited by this detaileddescription, but by the claims and the equivalents to the claims.

What is claimed is:
 1. A method of establishing a peer-to-peercommunication session with a host device by a client device, comprising:detecting an external device; receiving a first-Media Access Control(MAC) address from said external device; receiving routing informationof said host device from a server coupled to a wide area network;communicating with the server to maintain availability of a port;transmitting a STUN (Simple Traversal of User Datagram Protocol (UDP)through Network Address Translators (NATs)) message query to said serverfor the UDP public Internet Protocol (IP) address and port number of theclient device; receiving the UDP public IP address and port number ofthe client device from said server in response to said STUN messagequery; sending routing information of said client device from saidserver; providing a second MAC address to said host device via said widearea network; authenticating said client device if the first MAC addressmatches the second MAC address; and establishing a peer-to-peercommunication session with said host device via said wide area networkif authenticated to communicate with said host device.
 2. The method ofclaim 1, wherein providing said second MAC address further comprisesproviding an identification code, a serial number, a username and apassword, or other unique identification information stored by said hostdevice to identify an authorization of said client device forpeer-to-peer communication.
 3. The method of claim 1, further comprisingreceiving a request for said second MAC address from said host devicevia an open private port.
 4. The method of claim 1, further comprisingreceiving a request for said second MAC address from said host devicevia an open public port.
 5. The method of claim 1, wherein routinginformation of said host device comprises any one or more of: aTransmission Control Protocol (TCP) public IP address and port number; aUDP public IP address and port number; a private IP address and portnumber; and a MAC address of said host device.
 6. The method of claim 1,wherein routing information of said client device comprises any one ormore of: a Transmission Control Protocol (TCP) public IP address andport number; a UDP public IP address and port number; a private IPaddress and port number; and a MAC address of said host device.
 7. Themethod of claim 1, wherein said second MAC address of said client deviceis sent to a Transmission Control Protocol (TCP) public IP address andport number of said host device.
 8. The method of claim 1, wherein saidsecond MAC address of said client device is sent to a UDP public IPaddress and port number of said host device.
 9. The method of claim 1,wherein said second MAC address of said client device is sent to aprivate IP address and port number of said host device.
 10. The methodof claim 1, wherein said client device records said MAC address of saidhost device.
 11. A client device for establishing a peer-to-peercommunication session with a host device, configured to: detect anexternal device; receive a first Media Access Control (MAC) address fromsaid external device; receive routing information of said host devicefrom a server coupled to a wide area network; communicate with theserver to maintain availability of a port; send a STUN (Simple Traversalof User Datagram Protocol (UDP) through Network Address Translators(NATs)) message query to the server for the UDP public Internet Protocol(IP) address and port number of the client device; receive the UDPpublic IP address and port number of the client device from the serverin response to the STUN message query; send routing information of saidclient device to said server; provide a second Media Access Control(MAC) address to said host device via said wide area network; andestablish a peer-to-peer communication session with said host device viasaid wide area network if authenticated to communicate with said hostdevice.
 12. The client device of claim 11, wherein said client device isfurther configured to receive a request for the MAC address from saidhost device via an open private port.
 13. The client device of claim 11,wherein said client device is further configured to receive a requestfor the MAC address from said host device via an open public port. 14.The client device of claim 11, further comprising an authenticationinformation that comprises an identification code, a serial number, ausername and password, or other unique identification information storedby said host device to identify an authorization of said client devicefor peer-to-peer communication.
 15. The client device of claim 11,wherein the routing information of said host device comprises any one ormore of: a Transmission Control Protocol (TCP) public IP address andport number; a UDP public IP address and port number; a private IPaddress and port number; and a MAC address of said host device.
 16. Theclient device of claim 11, wherein routing information of said clientdevice comprises any one or more of: a Transmission Control Protocol(TCP) public IP address and port number; a UDP public IP address andport number; a private IP address and port number; and a MAC address ofsaid host device.
 17. The client device of claim 11, wherein said clientdevice is configured to send the MAC address of said client device to aTransmission Control Protocol (TCP) public IP address and port number ofsaid host device.
 18. The client device of claim 11, wherein said clientdevice is configured to send the MAC address of said client device to aprivate IP address and port number of said host device.
 19. The clientdevice of claim 11, wherein said client device is configured to send theMAC address of said client device to a UDP public IP address and portnumber of said host device.
 20. The client device of claim 19, whereinsaid client device records said MAC address of said host device.